<!DOCTYPE html>
<html lang="en">
<head>
	<meta charset="UTF-8">
	<meta name="viewport" content="width=device-width, initial-scale=1.0">
	<title>用户登录</title>
	<link rel="stylesheet" href="../static/css/css.css">
	<script type="text/javascript" src="../static/js/jquery-1.8.2.min.js"></script>
</head>
<body>

	<h1 id="content"></h1>

	<h2 style="color: red;" th:text="${message}"></h2>

	<form action="login" method="post">
		<table>
			<tr>
				<td>用户名</td>
				<td>
					<input type="text" name="username" th:value="${username}">
				</td>
			</tr>
			<tr>
				<td colspan="2">
					<span style="color: red;" th:text="${usernameMessage}"></span>
				</td>
			</tr>
			<tr>
				<td>密码</td>
				<td>
					<input type="text" name="password" th:value="${password}">
				</td>
			</tr>
			<tr>
				<td colspan="2">
					<span style="color: red;" th:text="${passwordMessage}"></span>
				</td>
			</tr>
			<tfoot>
				<tr>
					<td colspan="3">
						<input type="submit" value="登录">
					</td>
				</tr>
			</tfoot>
		</table>
	</form>
</body>
<script type="text/javascript">
	$(function() {
		// 标题
		$("#content").html("用户登录");
	})
</script>
</html>